load("@io_bazel_rules_go//go/private/rules:transition.bzl", "go_reset_target")
load("//go:def.bzl", "go_binary", "go_library")

filegroup(
    name = "all_files",
    testonly = True,
    srcs = glob(["**"]),
    visibility = ["//visibility:public"],
)

go_library(
    name = "go_default_library",
    srcs = [
        "main.go",
    ],
    visibility = [
        "//visibility:public",
    ],
)

go_binary(
    name = "pkgjson",
    embed = [":go_default_library"],
    visibility = ["//visibility:public"],
)

go_reset_target(
    name = "reset_pkgjson",
    dep = ":pkgjson",
    visibility = ["//visibility:public"],
)
